import request from '@/utils/request'

// 获取代办列表
export function getStatusList(index) {
  return request({
    url: '/system/index/wait/' + index,
    method: 'get'
  })
}
// 获取代办列表
export function getNoticeList(index) {
  return request({
    url: '/system/index/getNoticeList/' + index,
    method: 'get'
  })
}
// 修改出差审批状态
export function evectionChangeStatus(data) {
  return request({
    url: '/system/evection/changeStatus',
    method: 'put',
    data: data
  })
}

// 修改请假审批状态
export function askLeaveChangeStatus(data) {
  return request({
    url: '/system/askLeave/changeStatus',
    method: 'put',
    data: data
  })
}
// 修改离职审批状态
export function lizhiLeaveChangeStatus(data) {
  return request({
    url: '/system/leave/changeStatus',
    method: 'put',
    data: data
  })
}
// 修改离职审批状态
export function repairChangeStatus(data) {
  return request({
    url: '/system/repair/changeStatus',
    method: 'put',
    data: data
  })
}
// 获取用户数量
export function getUserNum() {
  return request({
    url: '/system/index/getUserNum',
    method: 'get',
  })
}
// 获取用户名
export function getUserName() {
  return request({
    url: '/system/index/getUserName',
    method: 'get',
  })
}
